package com.fzu.ess.ess.service;

import com.fzu.ess.common.Model.JsonModel;
import com.fzu.ess.ess.entity.Book;

import java.util.List;

/**
 * Created by ercha on 2015/10/25.
 */
public interface BookService {

    Book getById(String id);

    String create(Book book);

    List<Book> getAll();

    JsonModel getDataByPage(Integer pageNumber, Integer pageSize, String filter);

    JsonModel toggleStatus(String bookId, String userId, Integer currentStatus);

    JsonModel update(Book book, String language, String images);

    JsonModel deleteByUser(String bookId, String userId);

    JsonModel deleteByAdmin(String bookId, String reason);
}
